<div class="control-group">
    <?php echo form_open('admin/upd_usr'); ?>
    <?php foreach ($usr as $tah): ?>
        <div class="span6">
            <label class="control-label" for="input01">User ID</label>
            <div class="controls">
                <input class="input span2" type="text" value="<?php echo $tah->id ?>" name="user" >
            </div>
            <label class="control-label" for="input01">Nama</label>
            <div class="controls">
                <input class="input span6" type="text" name="nama" value="<?php echo $tah->nama ?>" >
            </div>
            <label class="control-label" for="input01">Jenis Kelamin</label>
            <div class="controls">
                <select id="select01" class="span6" name="jenis_kelamin">
                    <option value="Laki-laki">Laki-laki</option>
                    <option value="Perempuan">Perempuan</option>
                </select>
            </div>
            <label class="control-label" for="select01">Hak Akses</label>
            <div class="controls">
                <select id="select01" class="span6" name="hak_akses">
                    <?php foreach ($ak as $aks): ?>
                        <option value="<?php echo $aks->id ?>"><?php echo $aks->akses ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <label class="control-label" for="input01">Email</label>
            <div class="controls">
                <input class="input span6" type="text" name="mail" value="<?php echo $tah->email ?>" >
            </div>
            <label class="control-label" for="input01">Phone</label>
            <div class="controls">
                <input class="input span6" type="text" name="telephone" value="<?php echo $tah->phone ?>" >
            </div>
        </div>
        <div class="span6">
            <label class="control-label" for="input01">Kelas</label>
            <div class="controls">
                <select class="span6" name="kelas">
                    <?php foreach ($kls as $kelas) : ?>
                        <option value="<?php echo $kelas->id ?>"><?php echo $kelas->kelas ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <label class="control-label" for="input01">Mulai Bekerja</label>
            <div class="controls">
                <select id="select01" class="span6" name="bekerja">
                    <?php foreach ($th as $thn): ?>
                        <option value="<?php echo $thn->id ?>"><?php echo $thn->thn ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <label class="control-label" for="input01">Tempat lahir</label>
            <div class="controls">
                <input class="input span6" type="text" name="tempat_lahir" value="<?php echo $tah->tmpt_lahir ?>">
            </div>
            <label class="control-label" for="input01">Tanggal lahir</label>
            <div class="controls">
                <input class="input span6" type="text" name="tanggal_lahir" value="<?php echo $tah->tgl_lahir ?>" >
            </div>
            <label class="control-label" for="input01">Foto</label>
            <div class="controls">
                <img src="<?php echo $tah->foto ?>" class="thumbnail span4" name="ft_identitas">
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="span12">
            <div class="span4"></div>
            <div class="span4">
            <?php endforeach ?>
            <button class="btn btn-success" href="#"><i class="icon-ok icon-white"></i> Update</button>
            <?php echo form_close() ?>
        </div>
        <div class="span4"></div>
    </div>
</div>